package com.maxverse.boot.web2image.core.model.dto;

import lombok.Data;
import javax.validation.constraints.*;

@Data
public class ScreenshotRequest {
    @NotBlank(message = "URL不能为空")
    private String url;

    @NotNull(message = "宽度不能为空")
    @Min(value = 1, message = "宽度必须大于0")
    @Max(value = 10000, message = "宽度不能超过10000")
    private Integer width;

    @NotNull(message = "高度不能为空")
    @Min(value = 1, message = "高度必须大于0")
    @Max(value = 10000, message = "高度不能超过10000")
    private Integer height;

    @NotBlank(message = "图片格式不能为空")
    private String format = "jpg";

    @NotNull(message = "图片质量不能为空")
    @Min(value = 1, message = "质量必须大于0")
    @Max(value = 100, message = "质量不能超过100")
    private Integer quality = 90;

    @NotBlank(message = "截图模式不能为空")
    private String captureMode = "full";

    private TaskConfigDTO config;
} 